
<table border="0" cellpadding="5" cellspacing="0">
  <tr>
    <th colspan="2" align="left">Your Unified Payment Transaction was <%= @card_transaction.status %>. Below mentioned are the details</th>
  </tr>
  <% mail_content_hash_for_unified(@message, @card_transaction).each_pair do |key, value| %>
  <tr>
    <td><%= key.to_s.split('_').inject([]) { |r,s| r += [s.capitalize] }.join(' ') %></td>
    <td>: <%= value.to_s %></td>
  </tr>
  <% end %>
  <tr>
    <td>Order Description</td>
    <% if @card_transaction.order.line_items.count == 1 %>
      <td>: Payment for <%= @card_transaction.order.line_items.first.product.name + " at #{Spree::Config[:site_name]}"%></td>
    <% else %>
      <td>: Payment for <%= @card_transaction.order.line_items.count.to_s + " products at #{Spree::Config[:site_name]}"%></td>
    <% end %>
  </tr>
</table>
